Automating a Script

PreviousUpNext

You can use Beyond Compare's script processor to perform certain tasks, such as synchronizing folders, without interaction.  For example, to automate a backup of your C:\My Documents folder, enter the following script commands into Notepad:

load "C:\My Documents" "C:\Backups"
expand all
select left.newer.files left.orphan.files
copy left->right

 

Save this text file as: C:\My Documents\Sync.txt

A Beyond Compare script can be run at any desired time by using Window's Task Scheduler:

1.Open the Control Panel and double-click Schedule Tasks.
2.Double-click Add Scheduled Task.
3.In the Scheduled Task Wizard, select "Beyond Compare 3" from the list of installed applications and follow the instructions.
4.Double-click the newly created scheduled task to open the Properties dialog.
5.In the Run field add a reference to your script file:
BCompare.exe @Sync.Txt
6.Change the Start In field to be the location of the script file:
"C:\My Documents"

NoteNote  If you are running Windows XP, you will first need to select Performance and Maintenance from the Control Panel before selecting Schedule Tasks.

We recommend including a log command in your script.  If you have trouble with your script, check out the Scheduled Tasks error log: "SchedLgU.txt" in your Windows folder.